package cn.kgc.junit.entity;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author: 课工场
 * @since 2023/9/20
 * @NoArgsConstructor   生成无参构造方法
 * @AllArgsConstructor  全参构造方法
 * @Setter
 * @Getter
 * @ToString
 * @Accessors(chain = true)  开启对象的链式调用
 */
@Data
@Accessors(chain = true)
public class Student {

    private Integer age;
    private String name;
    private Double score;
    private String clazz;


    public void study(String course){
        System.out.println("course = " + course);
    }

    public void study(String course,Integer time){
        System.out.println("course = " + course);
        System.out.println("time = " + time);
    }
}
